package org.example.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName take_transfers
 */
@TableName(value = "take_transfers")
@Data
public class Transfers implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 转账id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 付款人
     */
    private Integer payerId;
    /**
     * 付款方式
     */
    private Integer payerBankid;
    /**
     * 收款人
     */
    private Integer payeeId;
    /**
     * 收款方式
     */
    private Integer payeeBankid;
    /**
     * 转账金额
     */
    private BigDecimal transferAmount;
    /**
     * 转账用途
     */
    private String transferPurpose;
    /**
     * 转账附言
     */
    private String transferPostscript;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @TableField(exist = false)
    private String bankAccount;
    @TableField(exist = false)
    private String payeeName;
}